package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class GenProtocolFee implements Serializable {
    /**
     * 生效
     */
    public static final String EFFECTIVE = "1";
    /**
     * 删除
     */
    public static final String DELETED = "0";

    private String id;

    private String protocolId;

    private BigDecimal startPrice;

    private BigDecimal startCount;

    private BigDecimal unitPrice;

    private String ieType;

    private String payRole;

    private BigDecimal capPrice;

    private String status;

    private String creator;

    private Date createTime;

    private String modifier;

    private Date modifyTime;

    private static final long serialVersionUID = 1L;

    public GenProtocolFee(String id, String protocolId, BigDecimal startPrice, BigDecimal startCount, BigDecimal unitPrice, String ieType, String payRole, BigDecimal capPrice, String status, String creator, Date createTime, String modifier, Date modifyTime) {
        this.id = id;
        this.protocolId = protocolId;
        this.startPrice = startPrice;
        this.startCount = startCount;
        this.unitPrice = unitPrice;
        this.ieType = ieType;
        this.payRole = payRole;
        this.capPrice = capPrice;
        this.status = status;
        this.creator = creator;
        this.createTime = createTime;
        this.modifier = modifier;
        this.modifyTime = modifyTime;
    }

    public GenProtocolFee() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId == null ? null : protocolId.trim();
    }

    public BigDecimal getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(BigDecimal startPrice) {
        this.startPrice = startPrice;
    }

    public BigDecimal getStartCount() {
        return startCount;
    }

    public void setStartCount(BigDecimal startCount) {
        this.startCount = startCount;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getIeType() {
        return ieType;
    }

    public void setIeType(String ieType) {
        this.ieType = ieType == null ? null : ieType.trim();
    }

    public String getPayRole() {
        return payRole;
    }

    public void setPayRole(String payRole) {
        this.payRole = payRole == null ? null : payRole.trim();
    }

    public BigDecimal getCapPrice() {
        return capPrice;
    }

    public void setCapPrice(BigDecimal capPrice) {
        this.capPrice = capPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier == null ? null : modifier.trim();
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", protocolId=").append(protocolId);
        sb.append(", startPrice=").append(startPrice);
        sb.append(", startCount=").append(startCount);
        sb.append(", unitPrice=").append(unitPrice);
        sb.append(", ieType=").append(ieType);
        sb.append(", payRole=").append(payRole);
        sb.append(", capPrice=").append(capPrice);
        sb.append(", status=").append(status);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GenProtocolFee other = (GenProtocolFee) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProtocolId() == null ? other.getProtocolId() == null : this.getProtocolId().equals(other.getProtocolId()))
            && (this.getStartPrice() == null ? other.getStartPrice() == null : this.getStartPrice().equals(other.getStartPrice()))
            && (this.getStartCount() == null ? other.getStartCount() == null : this.getStartCount().equals(other.getStartCount()))
            && (this.getUnitPrice() == null ? other.getUnitPrice() == null : this.getUnitPrice().equals(other.getUnitPrice()))
            && (this.getIeType() == null ? other.getIeType() == null : this.getIeType().equals(other.getIeType()))
            && (this.getPayRole() == null ? other.getPayRole() == null : this.getPayRole().equals(other.getPayRole()))
            && (this.getCapPrice() == null ? other.getCapPrice() == null : this.getCapPrice().equals(other.getCapPrice()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProtocolId() == null) ? 0 : getProtocolId().hashCode());
        result = prime * result + ((getStartPrice() == null) ? 0 : getStartPrice().hashCode());
        result = prime * result + ((getStartCount() == null) ? 0 : getStartCount().hashCode());
        result = prime * result + ((getUnitPrice() == null) ? 0 : getUnitPrice().hashCode());
        result = prime * result + ((getIeType() == null) ? 0 : getIeType().hashCode());
        result = prime * result + ((getPayRole() == null) ? 0 : getPayRole().hashCode());
        result = prime * result + ((getCapPrice() == null) ? 0 : getCapPrice().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}
